﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Highchart.Core;
using System.Collections.ObjectModel;
using Highchart.Core.Data.Chart;

namespace Highchart.Web
{
    public partial class Sample07 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {         
            //Exemplo07();
            //rp1.DataSource = new string[]{ "andre", "lucas" };
            //rp1.DataBind();


        }

        private void Exemplo07()
        {
          //  //definições de eixos
          //  hcVendas.YAxis = new YAxis { title = new Title("Faturamento") };
          //  hcVendas.XAxis = new XAxis { categories = new[] { "1994", "1995", "1996", "1997", "1998", "1999", "2000", "2001", "2002" } };

          //  //dados
          //  var series = new Collection<Serie>();
          //  series.Add(new Serie { data = new object[] { 400, 435, 446, 479, 554, 634, 687, 750, 831 } });
          ////  hcVendas.PlotOptions = new Core.PlotOptions.PlotOptionsLine { dataLabels = new Core.PlotOptions.DataLabels { enabled = true } };

          //  //bind do controle
          //  hcVendas.DataSource = series;
          //  hcVendas.DataBind();

        }

        protected void Unnamed1_DataBinding(object sender, EventArgs e)
        {

        }

        protected void rp1_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {

            string hcVendas = "";

            ////definições de eixos
            //hcVendas.YAxis = new YAxis { title = new Title("Faturamento") };
            //hcVendas.XAxis = new XAxis { categories = new[] { "1994", "1995", "1996", "1997", "1998", "1999", "2000", "2001", "2002" } };

            ////dados
            //var series = new Collection<Serie>();
            //series.Add(new Serie { data = new object[] { 400, 435, 446, 479, 554, 634, 687, 750, 831 } });
            ////  hcVendas.PlotOptions = new Core.PlotOptions.PlotOptionsLine { dataLabels = new Core.PlotOptions.DataLabels { enabled = true } };

            ////bind do controle
            //hcVendas.DataSource = series;
            //hcVendas.DataBind();
        }

    }
}